﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Demo.Models
{
    /// <summary>
    /// 参会者
    /// </summary>
    [Description("系统用户")]
    public class BaseUser : BaseEntity<long>
    {
         

        /// <summary>
        /// Initializes a new instance of the <see cref="BaseUser"/> class.
        /// </summary>
        public BaseUser()
        {

            Organizer = new Organizer();
            OrganizerAdmin = false;
            
        }
        /// <summary>
        /// 组织Id
        /// </summary>
        /// <value>The organizer_ identifier.</value>
        public long Organizer_Id { get; set; }

        /// <summary>
        /// 是否是组织架构的管理员
        /// </summary>
        public bool OrganizerAdmin { get; set; }
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string UserName { get; set; }

        /// <summary>
        /// Gets or sets the password.
        /// </summary>
        /// <value>The password.</value>
        public string Password { get; set; }

        /// <summary>
        /// Gets or sets the salt.
        /// </summary>
        /// <value>The salt.</value>
        public string Salt { get; set; }

        /// <summary>
        /// Gets or sets the name of the nick.
        /// </summary>
        /// <value>The name of the nick.</value>
        public string NickName { get; set; }

        /// <summary>
        /// Gets or sets the mobile.
        /// </summary>
        /// <value>The mobile.</value>
        public string Mobile { get; set; }

        /// <summary>
        /// Gets or sets the email.
        /// </summary>
        /// <value>The email.</value>
        public string Email { get; set; }

        /// <summary>
        /// Gets or sets the name of the company.
        /// </summary>
        /// <value>The name of the company.</value>
        public string CompanyName { get; set; }

        /// <summary>
        /// Gets or sets the name of the position.
        /// </summary>
        /// <value>The name of the position.</value>
        public string PositionName { get; set; }


        /// <summary>
        /// Gets or sets the union identifier.
        /// </summary>
        /// <value>The union identifier.</value>
        public string UnionId { get; set; }


        /// <summary>
        /// 用户配置信息 
        /// </summary>
        public string Config { get; set; }

        /// <summary>
        /// Gets or sets the organizer.
        /// </summary>
        /// <value>The organizer.</value>
        public virtual Organizer Organizer { get; set; }


        /// <summary>
        /// Gets or sets the base roles.
        /// </summary>
        /// <value>The base roles.</value>
        public virtual ICollection<BaseUserRole> BaseUserRoles { get; set; }
    }
}
